using System.Collections.Generic;
using Be.Timvw.Framework.ComponentModel;

namespace Be.Timvw.Framework.ComponentModel
{
    public static class SortableBindingListFactory
    {
        public static IList<Person> GetPersons()
        {
            return new Person[]
            {
                new Person(new ComparableIdentification(1), "A", "3", new NotComparableDate(1980, 04, 30), new GenericComparableAddress("1")), 
                new Person(new ComparableIdentification(2), "B", "1", new NotComparableDate(1982, 01, 30), new GenericComparableAddress("2")), 
                new Person(new ComparableIdentification(3), "C", "2",new NotComparableDate(1984, 02, 20), new GenericComparableAddress("3"))
            };
        }

        public static SortableBindingList<Person> Create()
        {
            return new SortableBindingList<Person>(GetPersons());
        }
    }
}
